﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace WuDada.Core.Post.Domain
{
    /// <summary>
    /// 標籤記錄 (最愛收藏, 出價紀錄)
    /// </summary>
    [Serializable]
    [DataContract]
    public class TagVO : BaseObject
    {
        #region Constructor

        public TagVO()
        {
        }

        #endregion

        #region Property

        /// <summary>
        /// Pkey
        /// </summary>
        [DataMember]
        public virtual int TagId { get; set; }

        /// <summary>
        /// 持有對象Id
        /// </summary>
        [DataMember]
        public virtual string OnwerId { get; set; }

        /// <summary>
        /// 目標對象Id
        /// </summary>
        [DataMember]
        public virtual string TargetId { get; set; }

        /// <summary>
        /// 數字/出價
        /// </summary>
        [DataMember]
        public virtual double Number { get; set; }

        /// <summary>
        /// 內容備註/描述
        /// </summary>
        [DataMember]
        public virtual string Description { get; set; }

        /// <summary>
        /// 類別
        /// </summary>
        [DataMember]
        public virtual TagVO.Type TagType { get; set; }

        /// <summary>
        /// 紀錄類別
        /// </summary>
        public enum Type
        {
            Favorite = 0,
            Bid = 1
        }

        #endregion

    }
}
